<template>
	<view class="specification-option">
		<!-- <view class="center option" style="border-bottom:2rpx solid rgba(238, 238, 238, 1);">
			<view class="title">规格</view>
			<view class="count">1件</view>
			<view class="right-icon center">
				<image :src="rightIcon" class="auto-img"></image>
			</view>
		</view> -->
		<view class="center option" v-if="type==0||type==1" @tap="hintPopupClick">
			<view class="title">配送</view>
			<view class="count">可选择同城配送并预约送达时间，本商品运费 :最低0.00元起送，免运费。</view>
			<view class="right-icon center">
				<image :src="rightIcon" class="auto-img"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
		 
			type: {
				type: Number,
				default: 0
			},
			 
		},
		data() {
			return {
				rightIcon: require('@/static/public/rightOption.png'),
			}
		},
		methods: {
			hintPopupClick(){
				this.$emit('hintPopupClick')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.specification-option {
		background: #fff;
		border-radius: 8rpx;
		margin-bottom: 24rpx;
		padding: 0 24rpx;

		.option {
			padding: 40rpx 0;

			.title {
				font-size: 28rpx;
				font-weight: 500;
				color: rgba(27, 25, 25, 1);
				flex: none;
			}

			.count {
				margin-left: 24rpx;
				// flex: auto;
				font-size: 26rpx;
				font-weight: 400;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				width: 600rpx;
				color: rgba(102, 102, 102, 1);
			}

			.right-icon {
				flex: none;
				width: 14rpx;
				height: 24rpx;
			}
		}


	}
</style>
